package com.luo.chengrui.module.sa.convert.org;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import com.luo.chengrui.module.sa.api.org.dto.OrgRespDTO;
import com.luo.chengrui.module.sa.dal.dataobject.org.OrgPersonDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.luo.chengrui.module.sa.controller.admin.org.vo.*;
import com.luo.chengrui.module.sa.dal.dataobject.org.OrgDO;

/**
 * 组织机构管理 Convert
 *
 * @author 诚睿
 */
@Mapper
public interface OrgConvert {

    OrgConvert INSTANCE = Mappers.getMapper(OrgConvert.class);

    OrgDO convert(OrgCreateReqVO bean);

    OrgDO convert(OrgUpdateReqVO bean);

    OrgRespVO convert(OrgDO bean);

    OrgRespDTO convert2(OrgDO bean);

    List<OrgRespVO> convertList(List<OrgDO> list);

    PageResult<OrgRespVO> convertPage(PageResult<OrgDO> page);

    List<OrgExcelVO> convertList02(List<OrgDO> list);

    List<OrgRespDTO> convertList3(List<OrgDO> personList);

}
